package ro.jproject.imc.view;


import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;


@SuppressWarnings("serial")
public class TableExample extends JFrame {
	
	
		
		DefaultTableModel model = new DefaultTableModel(new Object[][] {
				{"", "", "", "", ""}, },
				new Object[] { "Id", "First Name", "Last Name", "CNP", "Status" });
	
	
	public TableExample() {
		setTitle("Students DataBase");
	    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	
	    JTable table = new JTable(model);
	    getContentPane().add(new JScrollPane(table), BorderLayout.CENTER);
	    pack();
	  }
	
	  public static void main(String arg[]) {
	    new TableExample().setVisible(true);
	  }
}